﻿using System.ComponentModel;

namespace BodaNetCommunications.McComs
{
    public enum McAddressArea
    {
        [Description("输入继电器")]
        X = 0x9C,

        [Description("输出继电器")]
        Y = 0x9D,

        [Description("链接继电器")]
        B = 0xA0,

        [Description("内部辅助继电器")]
        M = 0x90,

        [Description("锁存继电器")]
        L = 0x92,

        [Description("步进继电器")]
        S = 0x98,

        [Description("报警器")]
        F = 0x93,

        [Description("控制继电器")]
        SM = 0x91,

        [Description("控制存储器")]
        SD= 0xA9,

        [Description("数据存储器D")]
        D = 0xA8,

        [Description("基恩士plc中扩展数据存储器D，为了区分，以DD代替")]
        DD,

        [Description("文件寄存器")]
        R = 0xAF,

        [Description("文件寄存器")]
        ZR = 0xB0,

        [Description("链路寄存器")]
        W = 0xB4,

        [Description("定时器(当前值)")]
        TN = 0xC2,

        [Description("定时器(触点)")]
        TS = 0xC1,

        [Description("定时器(线圈)")]
        TC = 0xC0,

        [Description("计数器(触点)")]
        CS = 0xC4,

        [Description("计数器(线圈)")]
        CC = 0xC3,

        [Description("计数器(当前值)")]
        CN = 0xC5,
    }
}